]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
popupMenu: Set ImageMenuItem's label-actor
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 23 Sep 2015 12:16:31 +0000 (14:16 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 23 Sep 2015 12:20:38 +0000 (14:20 +0200)
While we don't use image menu items ourselves, extensions might,
so make sure they are accessible out of the box.
Spotted by Jay Strict.

js/ui/popupMenu.js

index c10be71f77cc23e4e08f38574dd53e46d88c185d..05f82b8efdae752ccb128b4416b4477147a21a9c 100644 (file)
@@ -396,6 +396,7 @@ const PopupImageMenuItem = new Lang.Class({
         this.actor.add_child(this.label);
         this._icon = new St.Icon({ style_class: 'popup-menu-icon' });
         this.actor.add_child(this._icon, { align: St.Align.END });
+        this.actor.label_actor = this.label;
 
         this.setIcon(iconName);
     },